{{ if user:logged_in }}

<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
    <div class="container-fluid"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="#">Welcone : {{ user:first_name }} {{ user:last_name }}</a>
    
          <div class="btn-group pull-right"> 
          <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> 
          
          <i class="icon-user"></i>
          {{ user:username }} <span class="caret"></span> </a>
          
        <ul class="dropdown-menu">
              {{ if user:has_cp_permissions }}
        <li>
		<a href="{{ url:site uri='admin' }}" 
        target="_blank"><i class="icon-pencil"></i> {{ helper:lang line="global:control-panel" }}</a>
        </li>
			{{ endif }}
              
              <li><a href="{{ url:site uri='edit-profile' }}">
              <i class="icon-cog"></i>{{ helper:lang line="edit_profile_label" }}</a></li>
              <li class="divider"></li>
              <li><a href="{{ url:site uri='users/logout' }}"><i class="icon-off"></i>
              {{ helper:lang line="logout_label" }}</a></li>
            </ul>
      </div>

        </div>
  </div>
    </div>
{{ endif }}    